Allow font-spec in 'face-font-rescale-alist' set at startup
authorEli Zaretskii <eliz@gnu.org>
Thu, 15 Feb 2024 10:04:07 +0000 (12:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 15 Feb 2024 10:04:07 +0000 (12:04 +0200)
commit3d6137116f6be8ee38f9f49c9811b97ef92e0e58
treefcdcb2cb29119111b970a33902174436fdf87895
parent60cff1ac9d216e5abcb350ea5e623ab0b377c131
Allow font-spec in 'face-font-rescale-alist' set at startup

* lisp/startup.el (startup--rescale-elt-match-p): New function.
(normal-top-level): Use it, instead of the naive 'string-match-p',
to match the default font against the elements of
'face-font-rescale-alist'.  Reported by Rahguzar
<rahguzar@zohomail.eu>.
lisp/startup.el